import service from '@/utils/request'

// @Tags MasterBomAttachment
// @Summary 创建MasterBOM-附件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomAttachment true "创建MasterBOM-附件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBomAttachment/createMasterBomAttachment [post]
export const createMasterBomAttachment = (data) => {
  return service({
    url: '/masterBomAttachment/createMasterBomAttachment',
    method: 'post',
    data
  })
}

// @Tags MasterBomAttachment
// @Summary 删除MasterBOM-附件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomAttachment true "删除MasterBOM-附件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBomAttachment/deleteMasterBomAttachment [delete]
export const deleteMasterBomAttachment = (params) => {
  return service({
    url: '/masterBomAttachment/deleteMasterBomAttachment',
    method: 'delete',
    params
  })
}

// @Tags MasterBomAttachment
// @Summary 批量删除MasterBOM-附件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-附件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBomAttachment/deleteMasterBomAttachment [delete]
export const deleteMasterBomAttachmentByIds = (params) => {
  return service({
    url: '/masterBomAttachment/deleteMasterBomAttachmentByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBomAttachment
// @Summary 更新MasterBOM-附件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomAttachment true "更新MasterBOM-附件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBomAttachment/updateMasterBomAttachment [put]
export const updateMasterBomAttachment = (data) => {
  return service({
    url: '/masterBomAttachment/updateMasterBomAttachment',
    method: 'put',
    data
  })
}

// @Tags MasterBomAttachment
// @Summary 用id查询MasterBOM-附件
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBomAttachment true "用id查询MasterBOM-附件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBomAttachment/findMasterBomAttachment [get]
export const findMasterBomAttachment = (params) => {
  return service({
    url: '/masterBomAttachment/findMasterBomAttachment',
    method: 'get',
    params
  })
}

// @Tags MasterBomAttachment
// @Summary 分页获取MasterBOM-附件列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-附件列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBomAttachment/getMasterBomAttachmentList [get]
export const getMasterBomAttachmentList = (params) => {
  return service({
    url: '/masterBomAttachment/getMasterBomAttachmentList',
    method: 'get',
    params
  })
}
